package com.bxd.baodan.app;

import android.os.Environment;

public class Constant {
    /**
     * 请求json的root url
     */

    //   public static final String base_url = "http://rest-02.bxd365.com";
    public static final String base_url = "http://rest-02.dev.bxd365.com";//18  开发
    //  public static final String base_url = "http://rest-02.test.bxd365.com";//55 测试 打包
    // public static final String base_url = "http://rest-02.rc.bxd365.com";// 预发布
    //   public static final String base_url = "http://116.62.206.146"; //预发布
    // public static final String base_url = "http://rest-bxd.xtest.tech"; //测试环境
    public static final String root_url = Constant.base_url + "/";


    public static final String QUESTION_TO_ANSWER = "question_to_answer";
    public static final String ANSWER_TO_QUESTION = "answer_to_question";


    /**
     * 本应用的根目录
     */
    public static final String ROOT_DIR = Environment
            .getExternalStorageDirectory().getAbsolutePath() + "/insure/";
    public static final String IMAGE_AD = ROOT_DIR + "ad/";
    /**
     * 拍照后图片的临时文件夹
     */
    public final static String FILE_SAVEPATH = ROOT_DIR + "media";
    public final static String WENWEN_SEND = ROOT_DIR + "wenwen_voice/";
    public static final long PAGE_SIZE = 10;
    public static final String APP_NAME = "question";

    public static final String DB_NAME = "insure.db";
    /**
     * 数据库版本号
     */
    public static final int DB_VERSION = 69;
    /**
     * 没有任何网络链接
     */
    public static final String ACTION_NO_INTERNET = "no_internet";
    /**
     * 消息广播
     */
    public static final String ACTION_RECEIVE_MSG = "receive_new_msg";


    /**
     * 首页点击我的，跳转到我的界面
     */
    public static final String ACTION_MAIN_MY = "action_main_my";


    /**
     * 活动和广告广播
     */
    public static final String ACTION_RECEIVE_AD = "receive_new_ad";
    /**
     * 资料上传成功
     */
    public static final String ACTION_SUCCESS_UPLOAD_INFOR = "infor_load_complete";
    /**
     * 昵称修改成功
     */
    public static final String ACTION_SUCCESS_MODIFIED_INFOR = "infor_nodified_complete";
    /**
     * 提交问题成功
     */
    public static final String ACTION_ADD_QUESTION = "action_add_question";
    /**
     * 退出应用
     */
    public static final String ACTION_LOGOUT = "log_out";
    public static final String ACTION_SUCCESS_LOGIN = "logined";

    /**
     * 账户信息变更
     */
    public static final String ACTION_LOGIN_LOGINOUT = "action_login_loginout";

    /**
     * 贝壳增加
     */
    public static final String ACTION_BK_ADDED = "beike_added";


    /**
     * 新的活动或者广告
     */
    public static final int MSG_NEW_ACTIVITIES = 3;
    /**
     * 新的回答
     */
    public static final int MSG_NEW_ANSWER = 14;
    public static final int MSG_NEW_ANSWER_ADD = 15; //追问追答

    public static final int MSG_NEW_READ = 10;  //微阅读
    public static final int MSG_NEW_VIDEO = 11;  //小视频
    public static final int MSG_NEW_RECEIPT = 12;  //消息回执
    public static final int MSG_NEW_BAODAN = 13;  //保单消息

    /**
     * 账号异地登陆
     */
    public static final int MSG_DEVICE_RELOGIN = 4;

    /**
     * 意见反馈路径
     */
    public static final String FEEDBACK_URL = root_url + "/html/common/feedback?";


    /**
     * 分享问题的链接
     */
    public static final String SHARE_QUESTION_LINK = root_url + "html/question/detail?qid=";


    /**
     * 无内容页面
     */
    public static final String NO_PAGE = "file:///android_asset/refresh.html";
    public static final String ACTION_SUCCESS_FAMILY_REPORT_SUCESS = "action_success_family_report_sucess";
    public static final String ACTION_MAIN_BAOWWEN = "action_main_baowwen";


    /**
     * 启动次数统计接口
     */
    public static String LAUNCHSTAT = "api/common/launchstat";


    public static final String APP_ID = "evaluate";
    public static final String APP_SECRET = "Tfaa4z5QowOQA1CUhXNkHA3qtvjkI6lc";


//    public static final String APP_ID = "wenwen";
//    public static final String APP_SECRET = "296ef39ae7bd9c348bcea5612a5d1ecd";

    public static final String APP_EVALUATE = "api/user/evaluateadd";


    public static final String IM_LOGIN_SUCCESS = "im_login_success";
}
